home *** CD-ROM | disk | FTP | other *** search
- Configuration File README
- -------------------------
-
- An external application configuration file must be located off of the ExternalApps
- directory and must have the extension ".config". The file consists of five
- lines with each line as follows:
-
- Menu name
- Description
- Command Path
- Command Name
- Command Parameters
-
- The first line the Menu name is the name that the external application
- will have in the external application submenu.
-
- The second line is a description of the configuration file. This line is
- ignored and can be treated as comment line.
-
- The third line contains the command path and is the absolute path of the
- command. If nothing is present then the PATH environment variable will
- be used to try and find the executable.
-
- The fourth line contains the name of the executable.
-
- The fifth line contains the parameters passed to the executable, i.e., command
- line arguments.
-
- The command name and command parameters can contain variables. The list of
- allowable variables is
-
- %x Hostname, if available, else the IP address
- %H Hostname
- %I IP address
- %D Domain Name
- %N Netname
- %T Round Trip Time
- %A Latitude
- %G Longitude
-
- Variables present on the first three lines in the configuration file will not be
- interpreted as variables.
-
- As an example, the configuration file for ftp is (the line numbers are added for
- clarity):
-
- 1: Ftp
- 2: # Description
- 3:
- 4: ftp
- 5: %X
-
-
- Notes:
-
- 1) The line containing the command name and the command parameters can contain the character '%'
- as long as the character following does not make one of the above variable names. As an example,
-
- 1: Show Map
- 2: # Description
- 3:
- 4: http://www.mapblast.com/mblast/map.mb?loc=ll&worldres=&CMD=LFILL&auto=1&MA=3&CT%3A=%A&CT%3A=%G&CT=2000000
- -- -- -- --
- ^ ^ ^ ^
- | | | |
- Not a variable ---- | | |
- A variable ------------ | |
- Not a variable ------------- |
- A variable ---------------------
-
- 2) If there are no command parameters needed for the external application the last line does not
- have to be present, i.e., the fifth line does not have to contain a newline character. The
- program can handle this situation.
-
- 3) All configuration files are read in once, at program startup, therefore, if changes are made to
- a configuration file and Neotrace is running, the program must be restarted for Neotrace to
- recognize the changes.